package com.mls.education.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mls.common.annotation.Excel;
import com.mls.common.core.domain.BaseEntity;

import java.util.Date;


/**
 * 评论管理对象 edu_content
 * 
 * @author admin
 * @date 2022-03-10
 */
public class EduComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    private Integer id;

    /** 课时ID */
    @Excel(name = "课时ID")
    private Integer lessonId;

    private String lessonTitle;

    /** 评论用户ID */
    @Excel(name = "评论用户ID")
    private Integer userId;

    private String username;

    private String photo;

    /** 评论目标用户ID */
    @Excel(name = "评论目标用户ID")
    private Integer toUserId;

    private String toUsername;

    private String toUserPhoto;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date replyTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setLessonId(Integer lessonId) 
    {
        this.lessonId = lessonId;
    }

    public Integer getLessonId() 
    {
        return lessonId;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setToUserId(Integer toUserId) 
    {
        this.toUserId = toUserId;
    }

    public Integer getToUserId() 
    {
        return toUserId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLessonTitle() {
        return lessonTitle;
    }

    public void setLessonTitle(String lessonTitle) {
        this.lessonTitle = lessonTitle;
    }

    public String getToUsername() {
        return toUsername;
    }

    public void setToUsername(String toUsername) {
        this.toUsername = toUsername;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getToUserPhoto() {
        return toUserPhoto;
    }

    public void setToUserPhoto(String toUserPhoto) {
        this.toUserPhoto = toUserPhoto;
    }

    public Date getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("lessonId", getLessonId())
            .append("userId", getUserId())
            .append("toUserId", getToUserId())
            .append("content", getContent())
            .toString();
    }
}
